#include "HttpServer.hpp"
#include <memory>

int main(int argc, char* argv[])
{
    if(argc != 2) {
        cerr << "usage error!\n";
        return -1;
    }

    uint16_t port = stoi(argv[1]);

    unique_ptr<HttpServer> svr(new HttpServer(port));
    svr->startServer();
    return 0;
}   